"use strict";

const loaderRunner = require("loader-runner");
const stringWithMetadata = require("./string-with-metadata");
const loader = require("./string-with-metadata.loader.cjs");

loaderRunner.runLoaders(
  {
    resource: "./string-with-metadata.js",
    loaders: ["./string-with-metadata.loader.cjs.js"],
    context: { minimize: true },
    readResource: (resource) => {},
  },
  (err, result) => {
    if (!err) {
      console.log(result.result);
    }
  },
);
